Initialize hwnd to NULL. This fixes OpenClipboard() failure and, according
authorCody Russell <bratsche@gnome.org>
Sun, 15 Jun 2008 00:00:49 +0000 (00:00 +0000)
committerCody Russell <bratsche@src.gnome.org>
Sun, 15 Jun 2008 00:00:49 +0000 (00:00 +0000)
2008-06-14  Cody Russell  <bratsche@gnome.org>

        * gdk/win32/gdkselection-win32.c (gdk_win32_selection_add_targets):

        Initialize hwnd to NULL.  This fixes OpenClipboard() failure and,
        according to MSDN docs, associates the open clipboard with the
        current task.  (#378158, reported by Andreas Köhler)

svn path=/trunk/; revision=20388

ChangeLog
gdk/win32/gdkselection-win32.c

index a80ed70b012ebca99bfe0df2fb360599765a5257..f69f0745174127572676a7d7e393e9c94a6d0897 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-06-14  Cody Russell  <bratsche@gnome.org>
+
+       * gdk/win32/gdkselection-win32.c (gdk_win32_selection_add_targets):
+
+       Initialize hwnd to NULL.  This fixes OpenClipboard() failure and,
+       according to MSDN docs, associates the open clipboard with the
+       current task.  (#378158, reported by Andreas Köhler)
+
 2008-06-13  Matthias Clasen  <mclasen@redhat.com>
 
        * configure.in: Bump version
index 01e2d7f58fe4ad28e5081c84acc8f36d6df13e8e..7e9c8d971067d274708a903df26e32f4b6496d35 100644 (file)
@@ -1028,7 +1028,7 @@ gdk_win32_selection_add_targets (GdkWindow  *owner,
                                 gint        n_targets,
                                 GdkAtom    *targets)
 {
-  HWND hwnd;
+  HWND hwnd = NULL;
   guint formatid;
   gint i;
   GSList *convertable_formats, *format;